<%--
  Created by chenyi
  email: qq228112142@qq.com
  Date : 2017-08-08 17:59:52
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title></title>
    <%@ include file="/common/jsp/resource.jsp" %>
    <script type="text/javascript" src="/page/inituser/js/list.js"></script>
</head>
<body>
<form class="layui-form " action="">
    <div class="layui-form-item">
        <label class="layui-form-label">云支付账号:</label>
        <div class="layui-input-inline">
            <input type="text" name="account"  placeholder="请输入云支付账号" class="layui-input">
        </div>
        <label class="layui-form-label">状态:</label>
        <div cyType="selectTool" cyProps="codeName:'state',search:'true'"
             name="state"  class="layui-input-inline">
        </div>
        <div class="layui-input-inline">
            <button class="layui-btn search-btn" table-id="InitUserTable" lay-submit="" lay-filter="search"><i class="fa fa-search">&nbsp;</i>查询
            </button>
            <button type="reset" class="layui-btn layui-btn-primary"><i class="fa fa-refresh">&nbsp;</i>重置</button>
        </div>
    </div>
</form>
<div class="layui-btn-group">
    <button class="layui-btn" onclick="add('/init/user/add')">
    <i class="fa fa-plus">&nbsp;</i>增加
    </button>
    <button class="layui-btn" onclick="enable('InitUserTable','/init/user/enable')">
        <i class="fa fa-check-square-o">&nbsp;</i>启用
    </button>
    <button class="layui-btn  layui-btn-danger"  onclick="limit('InitUserTable','/init/user/limit')">
        <i class="fa fa-expeditedssl">&nbsp;</i>禁用
    </button>

    <%--<button class="layui-btn" onclick="importExcel('/member/import')">--%>
        <%--<i class="fa fa-upload">&nbsp;</i>导入--%>
        <%--<input type="file" name="file"  >--%>
    <%--</button>--%>

        <%--<shiro:hasPermission name="member:save">--%>
        <%--<button class="layui-btn" onclick="add('/init/user/add')">--%>
            <%--<i class="fa fa-plus">&nbsp;</i>增加--%>
        <%--</button>--%>
        <%--</shiro:hasPermission>--%>
        <%--<shiro:hasPermission name="member:update">--%>
        <%--<button class="layui-btn" onclick="edit('InitUserTable','/init/user/edit')" >--%>
            <%--<i class="fa fa-pencil-square-o">&nbsp;</i>修改--%>
        <%--</button>--%>
        <%--</shiro:hasPermission>--%>
        <%--<shiro:hasPermission name="member:delete">--%>
        <%--<button class="layui-btn" onclick="deleteBatch('InitUserTable','/init/user/delete');">--%>
            <%--<i class="fa fa-trash-o">&nbsp;</i>删除--%>
        <%--</button>--%>
        <%--</shiro:hasPermission>--%>
</div>
<div class="layui-form ">
    <table class="layui-table" id="InitUserTable" cyType="pageGrid"
           cyProps="url:'/init/user/list',checkbox:'true',pageColor:'#2991d9'">
        <thead>
        <tr>
            <!--复选框-->
            <th width="1%" param="{type:'checkbox'}">
                <input type="checkbox" lay-skin="primary" lay-filter="allChoose">
            </th>
            			            <!--isPrimary：是否是主键-->
            <th width="10%" param="{name:'id',isPrimary:'true',hide:'true'}">主键</th>

            <th width="10%" param="{name:'account'}">云支付账号</th>
			            			
            <th width="10%" param="{name:'name'}">姓名</th>
			            			
            <th width="10%" param="{name:'phone'}">电话</th>
			            			
            <th width="10%" param="{name:'recommendCode'}">推荐码</th>
			            			
            <th width="10%" param="{name:'teamCode'}">团队码</th>

            <th width="10%" param="{name:'state',codeName:'state',render:'Render.customState'}">状态</th>

        </tr>
        </thead>
    </table>
</div>
<script type="text/javascript">
    layui.use('upload', function(){
        layui.upload({
            url: '/init/user/importMember'
            ,success: function(res){
                console.log(res); //上传成功返回值，必须为json格式
            }
        });
    });

</script>
</body>
</html>